package com.example.student.web;

import jakarta.servlet.ServletException;
import jakarta.servlet.annotation.WebServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;

/**
 * @author TonySong
 * @date 2025/8/7 0007
 * @time 12:44
 */
@WebServlet("/hello")
public class HelloServlet extends BaseServlet{


    protected String list(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        System.out.println("hello....list");
        return "user_list.jsp";

    }
    protected String add(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        System.out.println("hello....add");
        return "redirect:list";
    }
}
